LANGUAGE_CODE = 'zh-hans' 

# ### 配置腾讯云短信 ###
# 腾讯云短信应用的app_id
TENCENT_SMS_APP_ID = 1400612134
# 腾讯云短信应用的app_key
TENCENT_SMS_APP_KEY = "6a41797a0dee164e0c5d69c38305f0f8"

# 腾讯云短信签名内容
TENCENT_SMS_SIGN = "奥特外卖券"
# 短信模板
TENCENT_SMS_TEMPLATE = {
    'register': 1249653,
    'login': 1249654
}

CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://39.103.149.57:1998", # 安装redis的主机的 IP 和 端口
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {
                "max_connections": 1000,
                "encoding": 'utf-8'
            },
            "PASSWORD": "asdfghjkl" # redis密码
        }
    }
}
